var logicBasic = require("./hunanRunQuicklyLogic.js")
var logic = new logicBasic()

var a = [
  {num : 3,type : 1,index : 0},
  {num : 3,type : 2,index : 1},
	{num : 4,type : 1,index : 0},
	{num : 4,type : 2,index : 1},
]
// console.log("result")
var result = logic.getCardType(a)
// console.log(result)
var handCard = [ { num: 2, type: 3, state: true, index: 0, belong: 1 },
  { num: 13, type: 0, state: true, index: 1, belong: 1 },
  { num: 10, type: 1, state: true, index: 2, belong: 2 },
  { num: 7, type: 3, state: true, index: 3, belong: 2 },
  { num: 8, type: 2, state: true, index: 4, belong: 5 },
  { num: 11, type: 2, state: true, index: 5, belong: 2 },
  { num: 8, type: 3, state: true, index: 6, belong: 5 },
  { num: 3, type: 3, state: true, index: 7, belong: 1 },
  { num: 12, type: 3, state: true, index: 8, belong: 5 },
  { num: 11, type: 1, state: true, index: 9, belong: 2 },
  { num: 9, type: 0, state: true, index: 10, belong: 1 },
  { num: 8, type: 1, state: true, index: 11, belong: 5 },
  { num: 10, type: 2, state: true, index: 12, belong: 2 },
  { num: 7, type: 0, state: true, index: 13, belong: 2 },
  { num: 12, type: 0, state: true, index: 14, belong: 5 },
  { num: 12, type: 2, state: true, index: 15, belong: 5 } ]
// var otherHandCard = [
// 	{state : true,num : 13,type : 1,index : 0},
// ]
// console.log("list")
var list = logic.getBestSubarea(handCard)
console.log(list)

// console.log("getLowValueCard",logic.getLowValueCard(handCard,handCard.length))

// console.log("getRobotLowValueCard",logic.getRobotLowValueCard(handCard,handCard.length,otherHandCard,otherHandCard.length))

// console.log(logic.getAllWinCardList(result,handCard))
// console.log(logic.getMinWinCardList(result,handCard))
// console.log(logic.getMaxWinCardList(result,handCard))
// console.log("getBestWinCardList",logic.getBestWinCardList(result,handCard))

// console.log("getRobotBestWinCardList",logic.getRobotBestWinCardList(result,handCard,otherHandCard,otherHandCard.length))